package com;


import com.springdi.di04.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class myTest04 {
   @Test
    public void test01() {
       String config = "applicationContext.xml";
       ApplicationContext ac = new ClassPathXmlApplicationContext(config);

       Student student = (Student) ac.getBean("myStudent");
       System.out.println("student: " + student);
  }
}